<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * 测试接口
 */
class Welcome extends MY_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see https://codeigniter.com/user_guide/general/urls.html
	 */
	public function index()
	{
        $data = array(
            'id'=>'1',
            'name'=>'策宝宝',
        );
		$this->printJson_data($data);
	}

    public function sh(){
        //echo exec('/usr/bin/sudo sh /sh/beyopj.sh 2>&1',$c);
      /* $aa = $_POST['a'];
        echo exec($aa,$vv);
        var_dump($vv);
        exit;
        
        echo exec('ll 2>&1',$v);
        var_dump($v);
       */
    }
   
}
